package register

import java.util.Date;
import java.util.SortedSet;

class Owner {

	String firstName
	String name
	String phone
	String epost
	SortedSet pets
	Date dateCreated = new Date()
	Date lastUpdated = new Date()

	static hasMany = [ pets: Pet ]


	static constraints = {
		name(size: 1..40, blank: false, unique: true)
		firstName(size: 1..40, blank: false)
	}
	String toString() {
		"${name}"
	}

}
